// 告诉 AI 数据库结构
const dbType = [
  {
    db: 'Product',
    collection: 'products',
    description: '产品信息',
    fields: {
      name: '产品名称 (String, required)',
      price: '单价（元）(Number)',
      category: '分类 (String)',
      createdAt: '创建时间 (Number)'
    }
  },
  {
    db: 'Order',
    collection: 'orders',
    description: '订单记录',
    fields: {
      productId: '产品ID（关联 products._id）(ObjectId, ref: Product)',
      quantity: '数量 (Number)',
      total: '订单总额 (Number)',
      orderTime: '下单时间 (Number)'
    }
  }
];

module.exports = dbType;